const express = require('express');
const router = express.Router();
const sectionSQL = require('../db/sectionSQL')

const data = require('./data');

router.get('/getpart', (req, res) => {
    sectionSQL.getpart((result) => {
        var getResult = {
            err: 200,
            partList: JSON.parse(JSON.stringify(result))
        }
        console.log(getResult)
        res.json(getResult)
    })
})

module.exports = router;